<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/line_state/line.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/line_state/line.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "line",
        setup() {
            const table = ref({
                key: "stage_number",
                footer: "Foots",
                cnName: "电镀实时信息",
                name: "line_state/line",
                newTabEdit: false,
                url: "/line/",
                sortName: "stage_number"
            });
            const editFormFields = ref({"prod_sn":"","step_number":"","stage_name":"","task_name":"","prod_name":"","batch_name":"","mould_name":"","load_name":"","recipe_name":"","bar_number":"","recipe_code":"","total_area":"","set_time":"","stay_time":"","set_temp":"","act_temp":"","set_data1":"","act_data1":"","set_data2":"","act_data2":"","set_data3":"","act_data3":"","set_data4":"","act_data4":"","ah":"","equ_info":"","opr":"","in_time":""});
            const editFormOptions = ref([[{"title":"生产序号","field":"prod_sn","type":"number"},
                               {"title":"工步","field":"step_number","type":"number"}],
                              [{"title":"槽位名称","field":"stage_name"},
                               {"title":"任务名称","field":"task_name"}],
                              [{"title":"零件号（根据report_info_1_total中的prod-sn）","field":"prod_name"},
                               {"title":"批次号（根据report_info_1_total中的prod-sn）","field":"batch_name"}],
                              [{"title":"有可能和recipe_info表中的prod_name关联?","field":"mould_name"},
                               {"title":"装载数量","field":"load_name"}],
                              [{"title":"工艺规程号（recipe_info表中的recip-code关联）","field":"recipe_name"},
                               {"title":"飞吧号","field":"bar_number","type":"number"}],
                              [{"title":"","field":"recipe_code","type":"number"},
                               {"title":"","field":"total_area","type":"number"}],
                              [{"title":"设定时间","field":"set_time","type":"number"},
                               {"title":"停留时间","field":"stay_time","type":"number"}],
                              [{"title":"设定温度","field":"set_temp","type":"decimal"},
                               {"title":"实际温度","field":"act_temp","type":"decimal"}],
                              [{"title":"设定电压","field":"set_data1","type":"number"},
                               {"title":"实际电压","field":"act_data1","type":"number"}],
                              [{"title":"左侧电流","field":"set_data2","type":"number"},
                               {"title":"实际左侧电流","field":"act_data2","type":"number"}],
                              [{"title":"设定右侧电流","field":"set_data3","type":"number"},
                               {"title":"实际右侧电流","field":"act_data3","type":"number"}],
                              [{"title":"设定转速","field":"set_data4","type":"number"},
                               {"title":"实际PH","field":"act_data4","type":"number"}],
                              [{"title":"实际电导率","field":"ah","type":"number"},
                               {"title":"","field":"equ_info","type":"number"}],
                              [{"title":"","field":"opr"}],
                              [{"title":"","field":"in_time"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"stage_number",title:"槽工位号",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"prod_sn",title:"生产序号",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"step_number",title:"工步",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"stage_name",title:"槽位名称",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"task_name",title:"任务名称",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"prod_name",title:"零件号（根据report_info_1_total中的prod-sn）",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"batch_name",title:"批次号（根据report_info_1_total中的prod-sn）",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"mould_name",title:"有可能和recipe_info表中的prod_name关联?",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"load_name",title:"装载数量",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"recipe_name",title:"工艺规程号（recipe_info表中的recip-code关联）",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"bar_number",title:"飞吧号",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"recipe_code",title:"recipe_code",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"total_area",title:"total_area",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_time",title:"设定时间",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"stay_time",title:"停留时间",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_temp",title:"设定温度",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"act_temp",title:"实际温度",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_data1",title:"设定电压",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"act_data1",title:"实际电压",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_data2",title:"左侧电流",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"act_data2",title:"实际左侧电流",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_data3",title:"设定右侧电流",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"act_data3",title:"实际右侧电流",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"set_data4",title:"设定转速",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"act_data4",title:"实际PH",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ah",title:"实际电导率",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"equ_info",title:"equ_info",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"opr",title:"opr",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"IsValid",type:"int",width:120,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
